//
// Created by mac on 1/28/22.
//
#include <vector>
using namespace std;

int singleNumber(vector<int>& nums) {

    int res = 0;
    for(int nu: nums){
        res^=nu;
    }
    return res;

}